package com.qianli.cashmama.product.facade.result;

import com.qianli.cashmama.product.facade.enums.BusinessRuleEnum;
import com.qianli.cashmama.product.facade.enums.NecessaryEnum;

import java.io.Serializable;

/**
 * Created by xuyang on 2017/7/20.
 */
public class ProductRuleDetail implements Serializable{

    private static final long serialVersionUID = -4000418458127038060L;
    //规则详情中文描述
    private String describe;

    //产品规则名称
    /** @see BusinessRuleEnum code */
    private String productRule;

    //解析规则用的参数
    private String productRuleValue;

    //是否必须
    /** @see NecessaryEnum */
    private Integer isNecessary;


    private String productType;


    public String getDescribe() {
        return describe;
    }

    public ProductRuleDetail setDescribe(String describe) {
        this.describe = describe;
        return this;
    }

    public String getProductRule() {
        return productRule;
    }

    public ProductRuleDetail setProductRule(String productRule) {
        this.productRule = productRule;
        return this;
    }

    public String getProductRuleValue() {
        return productRuleValue;
    }

    public ProductRuleDetail setProductRuleValue(String productRuleValue) {
        this.productRuleValue = productRuleValue;
        return this;
    }

    public Integer getIsNecessary() {
        return isNecessary;
    }

    public ProductRuleDetail setIsNecessary(Integer isNecessary) {
        this.isNecessary = isNecessary;
        return this;
    }

    public String getProductType() {
        return productType;
    }

    public ProductRuleDetail setProductType(String productType) {
        this.productType = productType;
        return this;
    }
}
